# _*_ encoding:utf-8 _*_


def jwt_response_payload_handler(token, user=None, request=None):

    return {
        'id': user.id,
        'username': user.username,
        'avatar': user.avatar,
        'mobile': user.mobile,
        'token': token
    }


